<!DOCTYPE html>
<html>
<head>
	<title>展示商品信息</title>
	<meta charset="utf-8">
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
	<style type="text/css">
		.table{
			width: 100%;
		}
	</style>
</head>
<body>
<div class="container">
 <table class="table" >
 	<tr>
 		<td>id</td>
 		<td>商品名称</td>
 		<td>商品单价</td>
 		<td>库存</td>
 		<td>logo</td>
 	  	<td>分类</td>
 	  	<td>销量</td>
 	  	<td>上\下架</td>
 	  	<td>包邮</td>
 	  	<td>推荐</td>
 	  	<td>新品</td>
 	  	<td>热卖</td>
 	  	<td>排序</td>
 	  	<td>操作</td>
 	</tr>
 	{foreach $goodsData as $v}
 	<tr>
 		<td>{$v.id}</td>
 		<td><a href="{:url('Goods/read')}?id={$v.id}">{$v.goods_name}</a></td>
 		<td>{$v.goods_price}</td>
 		<td>{$v.goods_num}</td>
 		<td><img src="{$v.logo_url}" width="50px"></td>
 		<td>{$v.cate_name}</td>
 		<td>{$v.goods_xiao}</td>
 		<td>
 			{if $v.goods_top == 1}
 				<p>√</p>
 			{else}
 				<p>×</p>
 			{/if}
 	   </td>
 	   <td>
 			{if $v.goods_baoyou == 1}
 				<p>√</p>
 			{else}
 				<p>×</p>
 			{/if}
 	   </td>
 	   <td>
 			{if $v.goods_tui == 1}
 				<p>√</p>
 			{else}
 				<p>×</p>
 			{/if}
 	   </td>
 	   <td>
 			{if $v.goods_new == 1}
 				<p>√</p>
 			{else}
 				<p>×</p>
 			{/if}
 	   </td>
 	   <td>
 			{if $v.goods_hot == 1}
 				<p>√</p>
 			{else}
 				<p>×</p>
 			{/if}
 	   </td>
 	   <td>{$v.goods_sort}</td>
 	   <td><a href="{:url('Goods/delete')}?id={$v.id}&goods_top={$v.goods_top}">删除</a>修改</td>
 	</tr>
 	{/foreach}
 </table>
 {$goodsData->render()}
</div>
</body>
</html>